<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jbox/jBox.css"/>
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jedate/skin/jedate.css"/>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jedate/jquery.jedate.js"></script>
<script type="text/javascript" src="<%=basePath%>statics/js/plug/jbox/jBox.js"></script>
<script type="text/javascript" src="<%=basePath%>statics/js/plug/selectator-master/fm.selectator.jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>statics/js/base/baseuser/base_user_add.js"></script>
<div class="window-title-bar">
    <h5 class="title">添加用户</h5>
</div>
<form id="addForm">

	<table>
		<tr>
			<td class="attr"><span>用 户 名：</span></td>
			<td><input class="attr2" id="userName" type="text"
				name="userName" placeholder="4~20位英文和数字的组合"></td>
		</tr>
		<tr>
			<td class="attr"><span>密&nbsp&nbsp码：</span></td>
			<td><input class="attr2" style="width: 325px;height: 25px " type="password" id='password'
				name='password' ></td>
		</tr>
		<tr>
			<td class="attr"><span>别&nbsp&nbsp名：</span></td>
			<td><input class="attr2" id='nickname' name='nickname'
				type='text'></td>
		</tr>
		<tr>
			<td class="attr"><span>所属角色：</span></td>
			<td>
			<select   id="role" style="width: 325px"   name="roleid" multiple class="selectator" data-selectator-keep-open="true" data-selectator-show-all-options-on-focus="true">
			<c:forEach var="item" items="${roleList}" varStatus="status">
			<option value="${item.id}">${item.name}</option>
			</c:forEach>
			</select>
			</td>
		</tr>
		<tr>
			<td class="attr"><span>所属部门：</span></td>
			<td><select class="attr2" style="width: 325px;height: 25px" id="department" name="departmentId"></select></td>
		</tr>
			<input class="hidden" id="status" type="hidden" name="status" value="1" checked="checked">
		<tr>
			<td class="attr"><span>性&nbsp&nbsp别：</span></td>
			<td><input class="radio" name='sex' type='radio'
				checked="checked" value="1"><span>男</span>
				&nbsp;&nbsp;&nbsp;&nbsp;<input class="radio" name='sex' type='radio'
				value="0">女</td>
		</tr>
		
		<tr>
			<td class="attr"><span>刷新缓存：</span></td>
			<td>
				<input class="radio" name='isRefreshCache' type='radio' checked="checked" value="0"><span>不刷新</span>
				<input class="radio" name='isRefreshCache' type='radio' value="1"><span>刷新</span>&nbsp;&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
        <tr>
            <td class="attr"><span>出生日期：</span></td>
            <td><input id="birthday" class="datainp wicon" type="text" readonly="" placeholder="YYYY-MM-DD" name="birthday" onclick="$.jeDate('#birthday',{ skinCell:'jedateblue',insTrigger:false,format:'YYYY-MM-DD',isTime:false})"></td>
        </tr>
		<!-- <tr>
            <td class="attr"><span>问题：</span></td>
            <td><input id="question" type="text" name="question"></td>
        </tr>
        <tr>
            <td class="attr"><span>答案：</span></td>
            <td><input id="answer" type="text" name="answer"></td>
        </tr> -->
        <tr>
            <td class="attr"><span>职务：</span></td>
            <td><input id="post" type="text" name="post"></td>
        </tr>
        <tr>
            <td class="attr"><span>电话：</span></td>
            <td><input id="telephone" type="text" name="telephone"><span id='telephoneSpan' style='color:red'></span></td>
        </tr>
        <tr>
            <td class="attr"><span>邮件：</span></td>
            <td><input id="eamil" type="text" name="email"></td>
        </tr>
        <tr>
            <td class="attr"><span>住址：</span></td>
            <td><input id="address" type="text" name="address"></td>
        </tr>
       
        
        <tr>
			<td class="attr"><span>备&nbsp&nbsp注：</span></td>
			<td><input class="attr2" id="remark" type="text" name="remark"></td>
		</tr>
	</table>
 <div class="buttons">
        <button type="submit">保存</button>
        <button id="cancleBtn" type="button" class="red">取消</button>
 </div>
</form>